vim9script noclear

if exists("g:markvim")
	finish
endif

g:markvim = 1

import autoload '../autoload/mark.vim'

command! -nargs=0 MarkSet mark.MarkSet()
command! -nargs=0 MarkClear mark.MarkClear()
command! -nargs=0 -bang MarkSearch mark.MarkSearch(<bang>true)

augroup mark_vim
	autocmd!
	autocmd! BufWinEnter * mark.MarkShow()
	autocmd! WinEnter * if !exists('w:STRList') | mark.MarkShow() | endif
	autocmd! TabEnter * mark.MarkUpdate()
augroup END
